﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace FlowControl
{
    // Helper class using in drag process
    class DragOb
    {
        bool isDragging = false;
        bool inAction = false;
        bool inActionProc = false;
        int actionId = 0; // using for identify OUTn
        IInputElement Input = null;
        public string toDo = null;

        double x, y = 0;


        public IInputElement InputElement
        {
            get { return this.Input; }
            set { this.Input = value; }
        }

        public double X
        {
            get { return this.x; }
            set { this.x = value; }
        }

        public double Y
        {
            get { return this.y; }
            set { this.y = value; }
        }

        public bool IsDragging
        {
            get { return this.isDragging; }
            set { this.isDragging = value; }
        }

        public bool InAction
        {
            get { return this.inAction; }
            set { this.inAction = value; }
        }

        public bool InActionProc
        {
            get { return this.inActionProc; }
            set { this.inActionProc = value; }
        }

        public int ActionId
        {
            get { return this.actionId; }
            set { this.actionId = value; }
        }
    }
}
